using System.Windows;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.UnityExtensions;
using Microsoft.Practices.Unity;
using System;

namespace VS.App
{
    public class Bootstrapper : UnityBootstrapper
    {
        private const string ModuleCatalogUri = "/VS.App;component/ModulesCatalog.xaml";

        protected override DependencyObject CreateShell()
        {
            Shell shell = Container.TryResolve<Shell>();
            Application.Current.RootVisual = shell;
            return shell;
        }

        protected override IModuleCatalog CreateModuleCatalog()
        {
            return Microsoft.Practices.Prism.Modularity.ModuleCatalog.CreateFromXaml(new Uri(ModuleCatalogUri, UriKind.Relative));
        }

        protected override void ConfigureContainer()
        {
            base.ConfigureContainer();
        }
    }
}
